package com.course02.order_backend.config.Ost;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBatisConfig {

    @Bean
    public MapperScannerConfigurer mapperScannerConfigurer() {
        MapperScannerConfigurer scanner = new MapperScannerConfigurer();
        // 扫描mapper/Ost包下的所有接口
        scanner.setBasePackage("com.course02.order_backend.mapper.Ost");
        return scanner;
    }
}